<?php
// Define path to application directory
defined('ROOT_PATH')
        || define('ROOT_PATH',
        realpath(dirname(__FILE__) . '/..'));

// Define path to application directory
defined('APPLICATION_PATH')
        || define('APPLICATION_PATH',
        realpath(dirname(__FILE__) . '/../application'));

require_once APPLICATION_PATH . '/Env.php';

// Create application, bootstrap, and run
require_once 'Application.php';
$application = new Application(
    APPLICATION_ENV,
    APPLICATION_PATH . '/configs/application.ini'
);

$application->bootstrap();
$application->run();

